<?php
class StaticListModel extends BaseModel implements Model {
    function __construct() {
        parent::__construct("", "");
    }
    
    function getEmailList($listId) {
        $table = "";
        $email = "";
        if ($listId == 1) {
            $table = "vw_top600companies";
            $email = "email1";
        } else if ($listId == 2) {
            $table = "vw_newcompanies";
            $email = "email1";
        } else if ($listId == 3) {
            $table = "lst_embassies";
            $email = "email";
        } else if ($listId == 4) {
            $table = "lst_gyosz";
            $email = "email";
        } else if ($listId == 5) {
            $table = "lst_iparipark";
            $email = "email";
        } else if ($listId == 6) {
            $table = "lst_mkik";
            $email = "email";
        } else if ($listId == 7) {
            $table = "lst_organizations";
            $email = "email1";
        } else if ($listId == 8) {
            $table = "lst_pm";
            $email = "email";
        } else if ($listId == 9) {
            $table = "lst_szakmaiszervezetek";
            $email = "email";
        } else if ($listId == 10) {
            $table = "lst_tbkonzulok";
            $email = "email";
        } else if ($listId == 11) {
            $table = "lst_tpa";
            $email = "email1";
        }
        $query = "SELECT $email AS email1 FROM $table";
        $res = Database::executeQuery($query);
        $data = Database::getDataFromResource($res);
        return $data;
    }
}

?>
